package com.liqi.frame.comm.dao;

import com.liqi.frame.comm.base.BaseDao;
import com.liqi.frame.comm.po.UserOnline;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author liqi on 2020/1/20 0020. liqiwork@qq.com
 */
public interface UserOnlineDao extends BaseDao<UserOnline> {
    int insertObject(
        @Param("id") String id,
        @Param("groupName") String groupName,
        @Param("fullname") String fullname,
        @Param("ipaddr") String ipaddr,
        @Param("loginLocation") String loginLocation,
        @Param("browser") String browser,
        @Param("os") String os,
        @Param("startTime") Date startTime,
        @Param("lastAccessTime") Date lastAccessTime,
        @Param("expireTime") Long expireTime,
        @Param("status") String status
    );

    int deleteObjectById(@Param("id") String id);

    UserOnline getObjectById(@Param("id") String id);

    List<UserOnline> getListWithFullname(@Param("fullname") String fullname);
}
